package com.qsl;

/**
 * @description: xxx描述
 * @author: 青石路
 * @date: 2024/5/17 9:12
 */
public class StringSplitTest {

    public static void main(String[] args) {
        String str = "hello-world:【（this,is a ：test】";
        String[] parts = str.split("[-:：【]+");
        for (String part : parts) {
            System.out.println(part);
        }
        System.out.println("123123:hello:[]:abc".replace(":", "："));
        StringBuilder sb = new StringBuilder("");
        String value = null;
        sb.append(value);
        System.out.println(sb.length());
    }
}
